package io.renren.entity.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: hongyuliu
 * @Date: 2020-08-13
 * @Version 1.0
 */
@Data
@NoArgsConstructor
public class ItemBean {

    /**
     * id
     */
    private Long id;
    /**
     * 名称
     */
    private String name;

    /**
     * 原始名称
     */
    private String originalName;

    /**
     * 父名称
     */
    private String parentName;

    /**
     * 排序
     */
    private Integer order;

    /**
     * 答案
     */
    private String answer;

    /**
     * 子元素
     */
    List<ItemBean> child = new ArrayList();


    public ItemBean(String name, String originalName, String parentName, Integer order) {
        this.name = name;
        this.order = order;
        this.parentName = parentName;
        this.originalName = originalName;
    }

}
